def triangle_generated(n):
    return int(0.5*n*(n-1))
def count_divisor(t_number):
    counter=0
    for i in range(1,t_number+1):
        if t_number%i==0:
            counter+=1
            return counter
star=time.time()
counter=1
order=1
while counter<=500:
    order+=1
    t_number=triangle_generated(order)
    counter=count_divisor(t_number)
    print("%s %s"%(t_number,counter))
print(t_number)
end=time.time()
print("cost %ss"%(end-start))